<template>
  <div></div>
</template>

<script>
//  该组件仅做一个跳转功能
export default {
  name: "verify",
  methods: {
    //实现重定向到数据验证
    GetVerify() {
      //获取区块hash
      let da = this.$route.query.url
      this.$http.get("/product/verify", {
        params: {
          "hash": da
        }, headers: {
          Authorization: "Bearer " + localStorage.getItem("front_token") //带着token去请求
        }
      }).then((rep) => {
        if (rep.data.code == 200) {
          window.open(rep.data.url,"_self")
        }
      }).catch((rep) => {
        console.log(rep)
      })
    }
  },
  mounted() {
    this.GetVerify()
  }
}
</script>

<style scoped>

</style>
